<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    div{
        height: 100px;
        width: 100px;
        border-radius: 50%;
        background: red;
        position: relative;
        animation-name: mymove;
        animation-duration: 3s;
        animation-iteration-count: 3;
        animation-delay: 2s;
    }
    /* 自定义动画 */
    @keyframes mymove{
        0%{background: red;left:0px;top:0px}
        25%{background: yellow;left:500px;top:0px}
        50%{background: skyblue;left:500px;top:500px}
        75%{background: red;left:0px;top:500px}
        100%{background: red;left:0px;top:0px}
    }
</style>
<body>
    <div></div>
</body>
</html>